package com.huonan.designpattern.piplie.demo;

public class App {

    public static void main(String[] args) {

        Pipeline pipeline = new Pipeline<>(new Stage1Handler())
                .addHandler(new Stage2Handler())
                .addHandler(new Stage3Handler());
        Object execute = pipeline.execute("开始：");
        System.out.println(execute.toString());

    }
}
